home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 October / CHIP Turkiye Ekim 2000.iso / prog / naps / 04 / setup.exe / Gnucleus / PrefDialog.h < prev    next >
C/C++ Source or Header  |  2000-06-24  |  2KB  |  87 lines

  1. #if !defined(AFX_PREFDIALOG_H__196C5E20_37F3_11D4_ACF2_00A0CC533D52__INCLUDED_)
  2. #define AFX_PREFDIALOG_H__196C5E20_37F3_11D4_ACF2_00A0CC533D52__INCLUDED_
  3.  
  4. #if _MSC_VER > 1000
  5. #pragma once
  6. #endif // _MSC_VER > 1000
  7. // PrefDialog.h : header file
  8. //
  9.  
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CPrefDialog
  12.  
  13. #include "PrefConnect.h"
  14. #include "PrefSearch.h"
  15. #include "PrefDownload.h"
  16. #include "PrefUpload.h"
  17. #include "PrefBandwidth.h"
  18. #include "PrefLanguage.h"
  19.  
  20. // Define the size of the tree control in the preferences and other sizes.
  21. #define PREF_TREE_WIDTH            150
  22. #define PREF_TREE_MARGIN_TOP    10
  23. #define PREF_TREE_MARGIN_LEFT    10
  24. #define PREF_TREE_MARGIN_BOTTOM    60
  25. #define PREF_TREE_MARGIN_RIGHT    10
  26. #define PREF_TAB_OFFSET_UP        20
  27.  
  28. class CPrefDialog : public CPropertySheet
  29. {
  30.     DECLARE_DYNAMIC(CPrefDialog)
  31.  
  32. // Construction
  33. public:
  34.     CPrefDialog(UINT nIDCaption, CWnd* pParentWnd = NULL, UINT iSelectPage = 0);
  35.     CPrefDialog(LPCTSTR pszCaption, CWnd* pParentWnd = NULL, UINT iSelectPage = 0);
  36.  
  37. // Attributes
  38. public:
  39.     CPrefConnect   m_TabConnect;
  40.     CPrefSearch    m_TabSearch;
  41.     CPrefDownload  m_TabDownload;
  42.     CPrefUpload    m_TabUpload;
  43.     CPrefBandwidth m_TabBandwidth;
  44.     CPrefLanguage  m_TabLanguage;
  45.  
  46.     // New Control
  47.     CTreeCtrl        m_Tree;
  48.  
  49. // Operations
  50. public:
  51.  
  52. // Overrides
  53.     // ClassWizard generated virtual function overrides
  54.     //{{AFX_VIRTUAL(CPrefDialog)
  55.     public:
  56.     virtual BOOL OnInitDialog();
  57.     //}}AFX_VIRTUAL
  58.  
  59. // Implementation
  60. public:
  61.     virtual ~CPrefDialog();
  62.  
  63.     // Generated message map functions
  64. protected:
  65.     afx_msg void OnApplyNow();
  66.     afx_msg void OnSelchanged(NMHDR* pNMHDR, LRESULT* pResult);
  67.     afx_msg LRESULT OnNotifyFormat(WPARAM wParam,LPARAM lParam);
  68.  
  69.     CRect m_rectPage;
  70.  
  71.     void AddPages();
  72.  
  73.     HICON m_hIcon;
  74.  
  75.     //{{AFX_MSG(CPrefDialog)
  76.     afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  77.     //}}AFX_MSG
  78.     DECLARE_MESSAGE_MAP()
  79. };
  80.  
  81. /////////////////////////////////////////////////////////////////////////////
  82.  
  83. //{{AFX_INSERT_LOCATION}}
  84. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  85.  
  86. #endif // !defined(AFX_PREFDIALOG_H__196C5E20_37F3_11D4_ACF2_00A0CC533D52__INCLUDED_)
  87.